import os
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
#编辑路径打开页面
driver = webdriver.Chrome()
file = "file:///"+os.path.abspath("../html/radio-checkbox.html")
driver.get(file)

inputs = driver.find_elements(By.XPATH, "//input[@type='checkbox']")

for input in inputs:
    time.sleep(3)
    input.click()
time.sleep(2)
driver.quit()